<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>es模块化按需引入</h1>
    <div id="app"></div>
    <script type="module">
        // 按需引入
        import { createApp } from "vue/dist/vue.esm-bundler.js";
        import BrevityUI, { BasicComponents, SingleFileComponents, TSXComponents } from "../../dist/brevity-ui.mjs";
        createApp({
            template: `
                <BasicComponents/>
                <SingleFileComponents/>
                <TSXComponents/>
            `
        })
        .component(BasicComponents.name, BasicComponents)
        .component(SingleFileComponents.name, SingleFileComponents)
        .component(TSXComponents.name, TSXComponents)
        .mount('#app')
    </script>
</body>

</html>